; Events file
; Civ II ToT Original Game extension
; Copyright 1999 MicroProse Software
;
;
; Events text for  "Total War 1941 -1945" Scenario - British Empire human player
; Tootall - 1/11/2014 (mm/dd/yyyy)
;
; Initialization
; --------------

@BEGINEVENTS
@INITFLAG
;@DEBUG

@IF
NOSCHISM
defender=anybody
@THEN
@ENDIF

@IF
TURN
turn=1
@THEN
JUSTONCE
TEXT
BRITISH PLAYER EVENTS
ENDTEXT
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Japanese attack on Honolulu ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
TURN
turn=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Japanese
maprect
7,49,13,49,13,55,7,55
moveto
12,56
numbertomove=ALL
@ENDIF

@IF
UNITKILLED
unit=WWI Battleship
attacker=Japanese
defender=Americans
@THEN
JUSTONCE
TEXT
PEARL HARBOR - December 7, 1941
^
Japanese aircraft attack the naval station at Pearl Harbor!
The battleship USS Arizona is sunk! Hundreds of US sailors die.
^
President Roosevelt declares this "a date which will live in infamy".
The United States and Britain declare war on Japan.
^
Prime Minister Churchill addresses the British nation on the BBC...
ENDTEXT
PlayWaveFile
churchill.wav
HASTRIGGERED
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- German offensive moves in Russia  & Africa ---
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

;--- Riga to Leningrad
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
100,14,102,14,102,20,100,20
moveto
102,12
numbertomove=ALL
@ENDIF

;--- Konigsberg to Riga
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
97,21,101,21,101,25,97,25
moveto
101,19
numbertomove=ALL
@ENDIF

;--- Smolensk to Moscow
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
103,17,107,17,107,21,103,21
moveto
110,18
numbertomove=ALL
@ENDIF

;--- Orel to Tula
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
106,22,108,22,108,26,106,26
moveto
110,22
numbertomove=ALL
@ENDIF

;--- Kharkov to tile NW of Stalingrad
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
107,27,113,27,113,31,107,31
moveto
115,29
numbertomove=ALL
@ENDIF

;--- Kiev to Kharkov
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
101,27,105,27,105,31,101,31
moveto
109,29
numbertomove=ALL
@ENDIF

;--- Dnepropetrovsk to tile east of Rostov
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
108,32,112,32,112,36,108,36
moveto
114,34
numbertomove=ALL
@ENDIF

;--- Odessa to Dnepropetrovsk
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
103,33,107,33,107,37,103,37
moveto
109,33
numbertomove=ALL
@ENDIF

;--- Move to Sevastopol
@IF
TURN
turn=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
108,38,108,38,108,38,108,38
moveto
109,39
numbertomove=ALL
@ENDIF

;--- Move to Alexandria
@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
91,57,97,57,97,61,91,61
moveto
103,59
numbertomove=ALL
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Japan's South-East Asian campaign
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
UNITKILLED
unit=WWI Battleship
attacker=Japanese
defender=British
@THEN
TEXT
BRITISH FORCE Z SUNK OFF MALAYSIA!
^
The British battleship HMS Prince of Wales and battlecruiser HMS Repulse are sunk 
by Japanese air strikes near Singapore.
ENDTEXT
JUSTONCE
HASTRIGGERED
@ENDIF

@IF
CITYTAKEN
city=Manila
attacker=Japanese
defender=Americans
@THEN
TEXT
AMERICAN DISASTER IN THE FAR EAST!
^
The Philippines fall into Japanese hands... Douglas McArthur is forced to leave the island.
^
He promises: "I shall return". 
ENDTEXT
JUSTONCE
CREATEUNIT
unit=Engineers
owner=Japanese
veteran=yes
homecity=None
locations
152,72
endlocations
@ENDIF

@IF
CITYTAKEN
city=Rabaul
attacker=Japanese
defender=British
@THEN
TEXT
RABAUL FALLS INTO JAPANESE HANDS!
^
The port is a natural harbor and will serve as a great naval base for the 
Japanese navy. 
^
Australia is in danger...
ENDTEXT
JUSTONCE
CREATEUNIT
unit=Bunker
owner=Japanese
veteran=yes
homecity=None
locations
165,83
endlocations
@ENDIF

@IF
CITYTAKEN
city=Rabaul
attacker=Japanese
defender=British
@THEN
JUSTONCE
CREATEUNIT
unit=Imperial Army
count=4
owner=Japanese
veteran=yes
homecity=None
locations
171,95
endlocations
@ENDIF

@IF
CITYTAKEN
city=Rabaul
attacker=Japanese
defender=British
@THEN
JUSTONCE
CREATEUNIT
unit=A6M2 Zero
count=3
owner=Japanese
veteran=yes
homecity=None
locations
165,83
endlocations
@ENDIF

@IF
CITYTAKEN
city=Rabaul
attacker=Japanese
defender=British
@THEN
JUSTONCE
CREATEUNIT
unit=D3A Val
count=3
owner=Japanese
veteran=yes
homecity=None
locations
165,83
endlocations
@ENDIF

@IF
CITYTAKEN
city=Rabaul
attacker=Japanese
defender=British
@THEN
JUSTONCE
CREATEUNIT
unit=Cruiser
count=2
owner=Japanese
veteran=yes
homecity=None
locations
165,83
endlocations
@ENDIF

@IF
CITYTAKEN
city=Rabaul
attacker=Japanese
defender=British
@THEN
JUSTONCE
CREATEUNIT
unit=Destroyer
count=4
owner=Japanese
veteran=yes
homecity=None
locations
165,83
endlocations
@ENDIF

@IF
CITYTAKEN
city=Henderson AFB
attacker=Japanese
defender=Americans
@THEN
JUSTONCE
CREATEUNIT
unit=A.A.Battery
owner=Japanese
veteran=yes
homecity=None
locations
170,94
endlocations
@ENDIF

@IF
CITYTAKEN
city=Sorong
attacker=Japanese
defender=Neutrals
@THEN
JUSTONCE
CREATEUNIT
unit=Engineers
owner=Japanese
veteran=no
homecity=None
locations
156,82
endlocations
@ENDIF

@IF
CITYTAKEN
city=Port Moresby
attacker=Japanese
defender=British
@THEN
JUSTONCE
CREATEUNIT
unit=A6M2 Zero
owner=Japanese
veteran=yes
homecity=None
locations
159,87
endlocations
@ENDIF

@IF
CITYTAKEN
city=Port Moresby
attacker=Japanese
defender=British
@THEN
JUSTONCE
CREATEUNIT
unit=D3A Val
count=2
owner=Japanese
veteran=yes
homecity=None
locations
159,87
endlocations
@ENDIF

@IF
CITYTAKEN
city=Singapore
attacker=Japanese
defender=British
@THEN
TEXT
SINGAPORE OVERRUN BY GENERAL YAMASHITA'S TROOPS!
^
The British military base of Singapore falls into Japanese hands...
80,000 Commonwealth troops are captured and forced into labor units
by their conquerors. 
^
Winston Churchill calls it the worst disaster and largest capitulation 
in British history.
ENDTEXT
JUSTONCE
CREATEUNIT
unit=Bunker
count=2
owner=Japanese
veteran=yes
homecity=None
locations
143,79
endlocations
@ENDIF

@IF
CITYTAKEN
city=Singapore
attacker=Japanese
defender=British
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=IJN Marines
owner=Japanese
veteran=yes
homecity=None
Randomize
locations
143,79
143,87
endlocations
@ENDIF

@IF
CITYTAKEN
city=Singapore
attacker=Japanese
defender=British
@AND
RANDOMTURN
denominator=6
@THEN
CREATEUNIT
unit=A.A.Battery
owner=Japanese
veteran=yes
homecity=None
Randomize
locations
143,79
143,87
endlocations
@ENDIF


@IF
CITYTAKEN
city=Balikpapan
attacker=Japanese
defender=Neutrals
@THEN
JUSTONCE
CREATEUNIT
unit=Engineers
owner=Japanese
veteran=no
homecity=None
locations
147,83
endlocations
@ENDIF

@IF
CITYTAKEN
city=Batavia
attacker=Japanese
defender=Neutrals
@THEN
TEXT
BATAVIA FALLS TO THE JAPANESE!
^
With the fall of Batavia, Japan secures it's hold on it's primary goal:
the Dutch East Indies oilfields.
ENDTEXT
JUSTONCE
CREATEUNIT
unit=Bunker
count=2
owner=Japanese
veteran=yes
homecity=None
locations
143,87
endlocations
@ENDIF

;--- Invasion of Sumatra
@IF
CITYTAKEN
city=Batavia
attacker=Japanese
defender=Neutrals
@THEN
JUSTONCE
CREATEUNIT
unit=Imperial Army
count=7
owner=Japanese
veteran=yes
homecity=None
locations
141,81
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;---Japanese invasion of Burma
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Japanese
maprect
139,67,143,67,143,73,139,73
moveto
140,64
numbertomove=ALL
@ENDIF

@IF
CITYTAKEN
city=Batavia
attacker=Japanese
defender=Neutrals
@THEN
JUSTONCE
Delay
delay=3
CREATEUNIT
unit=Imperial Army
count=7
owner=Japanese
veteran=yes
homecity=None
locations
141,69
142,68
endlocations
@ENDIF

@IF
CITYTAKEN
city=Batavia
attacker=Japanese
defender=Neutrals
@THEN
JUSTONCE
Delay
delay=3
CREATEUNIT
unit=Light Tank
count=2
owner=Japanese
veteran=yes
homecity=None
locations
141,69
142,68
endlocations
@ENDIF

@IF
CITYTAKEN
city=Batavia
attacker=Japanese
defender=Neutrals
@THEN
JUSTONCE
Delay
delay=3
CREATEUNIT
unit=Field Artillery
count=2
owner=Japanese
veteran=yes
homecity=None
locations
141,69
142,68
endlocations
@ENDIF

@IF
TURNINTERVAL
interval=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Japanese
maprect
138,62,140,62,140,66,138,66
moveto
135,63
numbertomove=ALL
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Allied Kunming Lend-Lease reinforcements to China
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CITYTAKEN
city=Mandalay
attacker=Japanese
defender=British
@THEN
TEXT
THE BURMA ROAD IS CUT OFF!
^
Japanese forces take Mandalay thereby cutting off the vital American 
supply route to China.
ENDTEXT
Flag
Continuous
Who=Chinese
State=On
Flag=0 ; China no longer receives American Lend-Lease aid 
@ENDIF

@IF
CITYTAKEN
city=Mandalay
attacker=Anybody
defender=Japanese
@THEN
TEXT
BRITISH OFFENSIVE RECAPTURES MANDALAY!
^
General Slim's British 30th Corps recaptures Mandalay thereby opening the new 
Ledo supply route to China.
ENDTEXT
Flag
Who=Chinese
State=Off
Flag=0 ; China is again able to receive American Lend-Lease aid 
@ENDIF

@IF
CheckFlag
Who=Chinese
Flag=0	; Mandalay not captured from the British
State=Off 
@AND
RANDOMTURN
denominator=3
@THEN
TEXT
America delivers new war material to China.
ENDTEXT
CREATEUNIT
unit=Motor Troops
owner=Chinese
veteran=no
homecity=None
locations
142,60
endlocations
CHANGEMONEY
receiver=Americans
amount=-100 ; Subtract 100 gold from the American treasury
@ENDIF

@IF
CITYTAKEN
city=Kunming
attacker=Japanese
defender=Chinese
@THEN
JUSTONCE
TEXT
KUNMING FALLS BEFORE AN INEXORABLE JAPANESE OFFENSIVE!
^
Japanese forces take Kunming thereby cutting off the vital American 
air supply route to China.
ENDTEXT
Flag
Continuous
Who=Chinese
State=On
Flag=1 ; China no longer receives American Lend-Lease aid in the form of fighters
@ENDIF

@IF
CheckFlag
Who=Chinese
Flag=1	; Kunming not captured from the Chinese
State=Off 
@AND
RANDOMTURN
denominator=4
@THEN
TEXT
America delivers fighter aircraft to China.
ENDTEXT
CREATEUNIT
unit=Fighter
owner=Chinese
veteran=no
homecity=None
locations
142,60
endlocations
CHANGEMONEY
receiver=Americans
amount=-125 ; Subtract 125 gold from the American treasury
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;---Chinese KMT & Communist reinforcements 
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=KMT Infantry
count=2
owner=Chinese
veteran=no
homecity=none
Randomize
locations
142,56
140,52
142,60
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=People's Army
count=3
owner=Chinese
veteran=no
homecity=none
Randomize
locations
143,47
145,45
145,41
143,41
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;---Modify Sino-Japanese Reputation and KMT mobilization effort
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CITYTAKEN
city=Changsa
attacker=Japanese
defender=Chinese
@THEN
Flag
Continuous
Who=Chinese
State=On
Flag=2 ;  
@ENDIF

@IF
CITYTAKEN
city=Wuhan
attacker=Japanese
defender=Chinese
@THEN
Flag
Continuous
Who=Chinese
State=On
Flag=3 ;  
@ENDIF

@IF
CheckFlag
Who=Chinese
Mask=0xF ; 2 of Kunming, Mandalay, Changsa OR Wuhan captured by the Japanese
Count=2
State=On
@THEN
TEXT
KUOMINTANG MOBILIZES CHINESE NATION!
^
The Chinese war effort reaches it's lowest point to date. Chiang Kai-Shek 
calls for increased mobilization!
ENDTEXT
JUSTONCE
ModifyReputation
Who=Japanese
whom=Chinese
modifier=100
@ENDIF

@IF
CheckFlag
Who=Chinese
Mask=0xF ; 
Count=2
State=On
@THEN
CREATEUNIT
unit=KMT Infantry
count=16
owner=Chinese
veteran=no
homecity=None
Randomize
locations
142,56
140,52
142,60
endlocations
@ENDIF

@IF
CheckFlag
Who=Chinese
Mask=0xF ; 
Count=2
State=On
@THEN
JUSTONCE
CREATEUNIT
unit=Field Artillery
count=4
owner=Chinese
veteran=no
homecity=None
Randomize
locations
142,56
140,52
142,60
endlocations
@ENDIF

@IF
CheckFlag
Who=Chinese
Mask=0xF ; 
Count=2
State=On
@THEN
JUSTONCE
CREATEUNIT
unit=A.A.Battery
count=4
owner=Chinese
veteran=no
homecity=None
Randomize
locations
142,56
140,52
142,60
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Japan captures Honolulu, Calcutta or Sydney
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CITYTAKEN
city=Honolulu
attacker=Japanese
defender=Americans
@THEN
TEXT
HAWAII FALLS TO JAPANESE INVASION!
^
Japanese forces capture the vital American naval base of Honolulu. These are dark times for the United States. 
^
Japan sees this as a confirmation of it's naval strategy and implements a massive 
naval shipbuilding program.
^
Japan can now build super battleships
ENDTEXT
GiveTechnology		
receiver=Japanese
technology=2
@ENDIF

@IF
CITYTAKEN
city=Calcutta
attacker=Japanese
defender=British
@THEN
TEXT
CALCUTTA FALLS. INDIA, THE PEARL OF THE BRITISH EMPIRE, IS THREATENED!
^
The Japanese 15th Army under Lt. General Mutaguchi captures Calcutta. 
^
In celebration, the Emperor commissions a new super battleship, the Shinano, 
for the Imperial Japanese Navy.
ENDTEXT
JUSTONCE
CREATEUNIT
unit=Yamato-BB
owner=Japanese
veteran=no
homecity=None
locations
143,79
163,45
endlocations
@ENDIF

@IF
CITYTAKEN
city=Sydney
attacker=Japanese
defender=British
@THEN
TEXT
THE AUSTRALIAN CONTINENT IN JEOPARDY OF BEING ENTIRELY OVERRUN!
^
Sydney falls to jubilant Japanese troops. Australia's war effort is on the brink of collapse.
ENDTEXT
JUSTONCE
CREATEUNIT
unit=Imperial Army
count=3
owner=Japanese
veteran=no
homecity=None
locations
161,107
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- BestowImprovement
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
RANDOMTURN
denominator=1
@THEN
BESTOWIMPROVEMENT
IMPROVEMENT=8
RACE=Japanese
CAPITAL=False
WONDERS=False
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;---New Japanese Yamato class Battleship
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
TURN
turn=9
@THEN
JUSTONCE
TEXT
U.S. NAVAL INTELLIGENCE CONFIRMS MUSASHI BATTLESHIP JOINS JAP NAVY!
^
After her successful sea trials, Yamato's sister ship, Musashi, joins the Imperial Japanese Fleet.
ENDTEXT
CREATEUNIT
unit=Yamato-BB
owner=Japanese
veteran=no
homecity=None
locations
152,72
163,45
endlocations
@ENDIF

;---Yamato/Musashi battleships sunk

@IF
UNITKILLED
unit=Yamato-BB
attacker=Anybody
defender=Japanese
@THEN
TEXT
SUPER BATTLESHIP SUNK!
^
One of the Imperial Japanese Navy's pride, a 70,000 ton Yamato class battleship, 
is sunk after a fierce naval battle.
ENDTEXT
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Japanese reinforcements
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

;--- Bunkers
;--- Hong Kong
@IF
TURN
Turn=4 ; 
@THEN
JUSTONCE
CREATEUNIT
unit=Bunker
count=2
owner=Japanese
veteran=yes
homecity=None
Randomize
locations
152,64
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=Light Tank
owner=Japanese
veteran=no
homecity=None
locations
163,45
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=Motor Troops
owner=Japanese
veteran=no
homecity=None
locations
158,50
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=A.A.Battery
owner=Japanese
veteran=no
homecity=None
Randomize
locations
162,48
150,40
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=Destroyer
owner=Japanese
veteran=Yes
homecity=None
Randomize
locations
143,79
166,66
172,76
155,77
152,64
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Cruiser
owner=Japanese
veteran=Yes
homecity=None
Randomize
locations
143,79
152,72
166,66
165,83
152,64
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=5
@THEN
CREATEUNIT
unit=Battleship
owner=Japanese
veteran=Yes
homecity=None
Randomize
locations
143,79
166,66
165,83
148,78
152,64
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Submarine
owner=Japanese
veteran=Yes
homecity=None
Randomize
locations
143,79
152,72
172,76
155,77
152,64
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=8
@THEN
CREATEUNIT
unit=IJN Carrier
owner=Japanese
veteran=Yes
homecity=None
Randomize
locations
143,79
172,76
165,83
148,78
152,64
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- German capture of Benghazi, Alexandria, London
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CITYTAKEN
city=Benghazi
attacker=Germans
defender=British
@THEN
TEXT
THE AFRIKA KORPS PUSHES DEEP INTO CYRENAICA!
^
In a bold move Rommel pushes his Afrika Korps deep into the desert. His gamble 
pays off and the enemy is once again forced to retreat.
ENDTEXT
JUSTONCE
CREATEUNIT
unit=PzKw IV
count=3
owner=Germans
veteran=yes
homecity=none
locations
97,57
endlocations
@ENDIF

@IF
CITYTAKEN
city=Benghazi
attacker=Germans
defender=British
@THEN
JUSTONCE
CREATEUNIT
unit=Pz Grenadiers
count=3
owner=Germans
veteran=yes
homecity=none
locations
97,57
endlocations
@ENDIF

@IF
CITYTAKEN
city=Benghazi
attacker=Germans
defender=British
@THEN
JUSTONCE
CREATEUNIT
unit=Fallschirmjger
owner=Germans
veteran=yes
homecity=none
locations
97,57
endlocations
@ENDIF

@IF
CITYTAKEN
city=Benghazi
attacker=Germans
defender=British
@THEN
JUSTONCE
CREATEUNIT
unit=Light Tank
count=2
owner=Germans
veteran=yes
homecity=none
locations
97,57
endlocations
@ENDIF

@IF
CITYTAKEN
city=Benghazi
attacker=Germans
defender=British
@THEN
JUSTONCE
CREATEUNIT
unit=Italian
count=3
owner=Germans
veteran=yes
homecity=none
locations
97,57
endlocations
@ENDIF

;--- German capture of Alexandria

@IF
CITYTAKEN
city=Alexandria
attacker=Germans
defender=British
@THEN
TEXT
MONTGOMERY DEFEATED AT EL ALAMEIN!
^
After routing the British at El Alamein, Rommel's Afrikakorps advances, 
unchallenged, into the heart of Egypt. 
ENDTEXT
JUSTONCE
CREATEUNIT
unit=Engineers
owner=Germans
veteran=yes
homecity=None
locations
103,57
endlocations
@ENDIF

;---Capture of London

@IF
CITYTAKEN
city=London
attacker=Germans
defender=British
@THEN
TEXT
CALAMITY! LONDON FALLS TO NAZI INVASION!
^
London is captured by Nazi stormtroopers. The King and Prime Minister must flee.
^ 
Hitler parades through Buckingham Palace. The Royal Crown Jewels of England are 
plundered by Nazi henchmen.
^
Operation "Sealion" has been a complete success.
ENDTEXT
CHANGEMONEY
receiver=Germans
amount=2000
JUSTONCE
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- German capture of Moscow, Leningrad, Satingrad or Baku
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CITYTAKEN
city=Moscow
attacker=Germans
defender=Russians
@THEN
TEXT
THE POLITBURO FLEES MOSCOW!
^
Operation Barbarossa has reached it's primary goal: the capture of Moscow. The Soviet 
government flees the Kremlin and vows to continue the fight from Siberia.
^
In the meantime, Hitler's henchmen plunder the Russian capital of all valuables.
ENDTEXT
JUSTONCE
CHANGEMONEY
receiver=Germans
amount=1000
@ENDIF

@IF
CITYTAKEN
city=Leningrad
attacker=Germans
defender=Russians
@THEN
TEXT
LENINGRAD SUCCOMBS TO REPEATED GERMAN ASSAULTS!
^
The birthplace of the Russian Bolshevik Revolution falls to the Nazi hordes.  
^
Hitler's success brings about the formation of the 11th 'Nordland' SS Panzer division.
ENDTEXT
JUSTONCE
CREATEUNIT
unit=SS Pz Division
owner=Germans
veteran=yes
homecity=Berlin
locations
95,27
endlocations
@ENDIF

@IF
CITYTAKEN
city=Stalingrad
attacker=Germans
defender=Russians
@THEN
JUSTONCE
TEXT
STALIN'S NAMESAKE FALLS TO GENERAL PAULUS' SIXTH ARMY!
^
After a long bloody struggle the Wehrmacht finally pushes the Red Army out 
of what remains of Stalingrad.
^
The Germans captures many valuable war materials coming up the Volga river. 
ENDTEXT
CHANGEMONEY
receiver=Germans
amount=500
@ENDIF

@IF
CITYTAKEN
city=Baku
attacker=Germans
defender=Russians
@THEN
TEXT
THE CAUCASSUS OIL FIELDS CAPTURED!
^
German panzers seize control of the strategic oil fields at Baku and Grosny. 
^
With these new resources, Hitler is able to constitue new panzer formations...
ENDTEXT
JUSTONCE
CREATEUNIT
unit=PzKw IV
Count=3
owner=Germans
veteran=yes
homecity=None
locations
95,27
endlocations
@ENDIF

;--- CASE BLUE: the capture of Rostov

@IF
CITYTAKEN
city=Rostov
attacker=Germans
defender=Russians
@THEN
TEXT
CASE BLUE LAUNCHED!
^
The capture of Rostov opens up the route to the the Caucasus for the German 
First Panzer and Seventeeth Armies. 
^
Can the Russian army prevent the Army Group from capturing it's stated goal: 
the oil rich region of Baku?
ENDTEXT
JUSTONCE
CREATEUNIT
unit=PzKw IV
Count=3
owner=Germans
veteran=yes
homecity=None
locations
112,34
endlocations
@ENDIF

@IF
CITYTAKEN
city=Rostov
attacker=Germans
defender=Russians
@THEN
JUSTONCE
CREATEUNIT
unit=Motor Troops
Count=2
owner=Germans
veteran=yes
homecity=None
locations
112,34
endlocations
@ENDIF

@IF
CITYTAKEN
city=Rostov
attacker=Germans
defender=Russians
@THEN
JUSTONCE
CREATEUNIT
unit=Wehrmacht
Count=4
owner=Germans
veteran=yes
homecity=None
locations
112,34
endlocations
@ENDIF

@IF
CITYTAKEN
city=Rostov
attacker=Germans
defender=Russians
@THEN
JUSTONCE
CREATEUNIT
unit=Field Artillery
Count=2
owner=Germans
veteran=yes
homecity=None
locations
112,34
endlocations
@ENDIF

@IF
CITYTAKEN
city=Rostov
attacker=Germans
defender=Russians
@THEN
JUSTONCE
CREATEUNIT
unit=Me-109
owner=Germans
veteran=yes
homecity=None
locations
112,34
endlocations
@ENDIF

@IF
CITYTAKEN
city=Rostov
attacker=Germans
defender=Russians
@THEN
JUSTONCE
CREATEUNIT
unit=Ju-87 Stuka
Count=2
owner=Germans
veteran=yes
homecity=None
locations
112,34
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Allied Murmansk Lend-Lease reinforcements and capture of Murmansk
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

;--- Lend-Lease closed
@IF
CITYTAKEN
city=Murmansk
attacker=Germans
defender=Russians
@THEN
TEXT
MURMANSK CAPTURED BY GENERAL DIETL'S 20th MOUNTAIN ARMY!
^
One of Russia's vital supply lines to the West is cut off.
ENDTEXT
Flag
Continuous
Who=Russians
State=On
Flag=0 ; MURMANSK captured
@ENDIF

@IF
CITYTAKEN
city=Arkhangelsk
attacker=Germans
defender=Russians
@THEN
TEXT
ARKHANGELSK CAPTURED BY GENERAL DIETL'S 20th MOUNTAIN ARMY!
^
One of Russia's vital supply lines to the West is cut off.
ENDTEXT
Flag
Continuous
Who=Russians
State=On
Flag=4 ; ARKHANGELSK captured
@ENDIF

@IF
CheckFlag  
Who=Russians
FLAG=0
State=On
@AND
CheckFlag
Who=Russians
FLAG=4
State=On
@THEN
FLAG
Who=Russians
State=On
Flag=7	; LEND LEASE CLOSED
@ENDIF

@IF
UNITKILLED
unit=Lend-Lease Truck
attacker=Barbarians
defender=British
@AND
CheckFlag
Who=Russians
Flag=7 ; Both Murmansk and Arkhangelsk are captured. 
State=On  
@THEN
TEXT
LEND-LEASE ROUTE CLOSED!
^
British supplies cannot be delivered to Russia unless Murmansk or 
Archangelsk are recaptured by the Russians.
ENDTEXT
@ENDIF

;--- Lend-Lease re-opened
@IF
CITYTAKEN
city=Murmansk
attacker=Russians
defender=Germans
@THEN
Flag
Continuous
Who=Russians
State=Off
Flag=0 ; Murmansk captured
@ENDIF

@IF
CITYTAKEN
city=Arkhangelsk
attacker=Russians
defender=Germans
@THEN
Flag
Continuous
Who=Russians
State=Off
Flag=4 ; Arkhangelsk captured
@ENDIF

@IF
CheckFlag  
Who=Russians
FLAG=0
State=Off
@THEN
FLAG
Who=Russians
State=Off
Flag=7	; LEND LEASE RE-OPENED
@ENDIF

@IF
CheckFlag
Who=Russians
FLAG=4
State=Off
@THEN
FLAG
Who=Russians
State=Off
Flag=7	; LEND LEASE RE-OPENED
@ENDIF

;--- Deliver Lend-Lease supplies
@IF
UNITKILLED
unit=Lend-Lease Truck
attacker=Barbarians
defender=British
@AND
CheckFlag
Who=Russians
Flag=7 	; At least one of Murmansk or Arkhangelsk are not captured
State=Off 
@THEN
TEXT
BRITAIN DELIVERS SUPPLIES TO RUSSIA!
^
The Russian army receives a new contingent of trucks and supplies 
for its war effort.
^
Britain receives diplomatic recognition (gold) for its aid to Russia.
ENDTEXT
CREATEUNIT
unit=Motor Troops
count=2
owner=Russians
veteran=yes
homecity=none
Randomize
locations
101,3
109,11
endlocations
CHANGEMONEY
receiver=Russians
amount=100 ; 
@ENDIF

@IF
UNITKILLED
unit=Lend-Lease Truck
attacker=Barbarians
defender=British
@AND
CheckFlag
Who=Russians
Flag=7	; At least one of Murmansk or Arkhangelsk are not captured
State=Off 
@THEN
CHANGEMONEY
receiver=British
amount=175 ; 
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Partisan forces join the struggle against Nazi oppression.
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=Partisans
owner=Russians
veteran=no
homecity=None
Randomize
locations
103,25
105,27
103,15
105,31
109,23
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Partisans
owner=Russians
veteran=no
homecity=None
Randomize
locations
94,40
95,41
96,40
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Flag=2	; French partisans activated with capture of Tunis
State=On	 
@AND
RANDOMTURN
denominator=4
@THEN
TEXT
New recruits join the French underground in France!
ENDTEXT
CREATEUNIT
unit=Partisans
owner=British
veteran=no
homecity=None
Randomize
locations
87,39
90,36
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;---German Wolfpack success
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
UNITKILLED
unit=Liberty Ship
attacker=Germans
defender=Anybody
@THEN
TEXT
Doenitz's wolfpacks sink Allied shipping!
ENDTEXT
CHANGEMONEY
receiver=Germans
amount=300
@ENDIF

@IF
UNITKILLED
unit=Freighter
attacker=Germans
defender=Anybody
@THEN
TEXT
Doenitz's wolfpacks sink Allied shipping!
ENDTEXT
CHANGEMONEY
receiver=Germans
amount=200
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;---German U-Boat reinforcements
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

;--- U-boats arrive at St-Nazaire
@IF
CITYTAKEN
city=St-Nazaire
attacker=Anybody
defender=Germans
@THEN
JUSTONCE
TEXT
ST-NAZAIRE CAPTURED!
^
Doenitz's primary U-boat base has been captured by the Allies. He 
will now have to continue the war from Germany.
ENDTEXT
Flag
Continuous
Who=Germans
State=On
Flag=0 ; Germany no longer receives U-boat reinforcements in France
@ENDIF

@IF
CheckFlag
Who=Germans
Flag=0	; St-Nazaire not captured
State=Off 
@AND
RANDOMTURN
denominator=2
@THEN
CREATEUNIT
unit=Submarine
owner=Germans
veteran=no
homecity=None
locations
84,34
endlocations
@ENDIF

;--- U-boats in South Atlantic 
@IF
TURN
Turn=1 ; 
@THEN
JUSTONCE
CREATEUNIT
unit=Submarine
count=3
owner=Germans
veteran=no
homecity=None
Randomize
locations
74,92
70,110
80,114
116,106
endlocations
@ENDIF

;--- U-boats in North Atlantic 
@IF
TURN
Turn=3 ; 
@THEN
JUSTONCE
CREATEUNIT
unit=Submarine
count=3
owner=Germans
veteran=yes
homecity=None
Randomize
locations
60,12
55,39
50,50
68,26
endlocations
@ENDIF

;--- U-boats arrive at Trondheim 
@IF
RANDOMTURN
denominator=4 ; Trondheim not captured
@THEN
CREATEUNIT
unit=Submarine
owner=Germans
veteran=yes
homecity=None
locations
93,7
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;---German Afrika Korps reinforcements
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CITYTAKEN
city=Tripoli
attacker=Anybody
defender=Germans
@THEN
JUSTONCE
TEXT
TRIPOLI OVERRUN BY ALLIED FORCES!
^
With the loss of Tripoli the Afrika Korps losses a primary base for 
supplies and reinforcements. 
ENDTEXT
Flag
Continuous
Who=Germans
State=On
Flag=1 ; Axis base of Tripoli closed
@ENDIF

@IF
CITYTAKEN
city=Tunis
attacker=Anybody
defender=Germans
@THEN
JUSTONCE
TEXT
TUNIS CAPTURED BY ALLIED FORCES!
^
With the loss of Tunis the Afrika Korps losses a primary base for supplies 
and reinforcements. 
^
Many frenchmen rally to the Allied cause.
ENDTEXT
Flag
Continuous
Who=Germans
State=On
Flag=6 ; Axis base of Tunis closed
@ENDIF

@IF
CheckFlag
Who=Germans
Mask=0x42 ; Tripoli or Tunis are both captured
Count=2
State=On 
@THEN
JUSTONCE
TEXT
THE AFRIKA KORPS LOSES ITS TWO SUPPLY BASES!
^
The German High Command can no longer send reinforcements to Africa. 
ENDTEXT
@ENDIF

@IF
CheckFlag
Who=Germans
Mask=0x42 ; Tripoli or Tunis are not captured
Count=2
State=Off 
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=PzKw IV
owner=Germans
veteran=yes
homecity=None
locations
91,59
89,53
endlocations
@ENDIF

@IF
CheckFlag
Who=Germans
Mask=0x42 ; Tripoli or Tunis are not captured
Count=2
State=Off
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Pz Grenadiers
owner=Germans
veteran=yes
homecity=None
locations
91,59
89,53
endlocations
@ENDIF

@IF
CheckFlag
Who=Germans
Mask=0x42 ; Tripoli or Tunis are not captured
Count=2
State=Off 
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Me-109
owner=Germans
veteran=yes
homecity=None
locations
91,59
89,53
endlocations
@ENDIF

@IF
CheckFlag
Who=Germans
Mask=0x42 ; Tripoli or Tunis are not captured
Count=2
State=Off
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Ju-87 Stuka
owner=Germans
veteran=yes
homecity=None
locations
91,59
89,53
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;---German Axis Minor reinforcements
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CITYTAKEN
city=Bucharest
attacker=Anybody
defender=Germans
@THEN
JUSTONCE
TEXT
LOSS OF BUCHAREST THREATENS GERMAN WAR EFFORT!
^
With the loss of Bucharest, the Germans lose control of one of their most important 
ressources in the war: The Ploiesti oil fields in Rumania. 
^
Hitler's Axis allies begin to desert him...
ENDTEXT
Flag
Continuous
Who=Germans
State=On
Flag=2 ; Germany no longer receives Axis Minor troops
@ENDIF

@IF
CheckFlag
Who=Germans
Flag=2	; Bucharest not captured
State=Off 
@AND
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Axis Minor
owner=Germans
veteran=no
homecity=none
locations
102,38
97,37
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;---German Finnish reinforcements
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CITYTAKEN
city=Helsinki
attacker=Anybody
defender=Germans
@THEN
JUSTONCE
TEXT
SOVIETS CAPTURE HELSINKI!
^
Finland has no other recourse but to accept Russian surrender terms.
ENDTEXT
Flag
Continuous
Who=Germans
State=On
Flag=3 ; Germany no longer receives Finnish troops
@ENDIF

@IF
CheckFlag
Who=Germans
Flag=3	; Helsinki not captured
State=Off 
@AND
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=Finnish
owner=Germans
veteran=yes
homecity=None
locations
99,13
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;---German Italian reinforcements and Surrender
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CITYTAKEN
city=Naples
attacker=Anybody
defender=Germans
@THEN
Flag
Continuous
Who=Germans
State=On
Flag=4 ; Germany no longer receives Italian troops
JUSTONCE
TEXT
NAPLES FALLS TO COMBINED ALLIED FORCES!
^ 
The last Italian diehard fascists join the Nazi's in the North...
ENDTEXT
CREATEUNIT
unit=Italian
count=6
owner=Germans
veteran=no
homecity=None
Randomize
locations
91,39
endlocations
@ENDIF

@IF
CITYTAKEN
city=Messina
attacker=Anybody
defender=Germans
@THEN
Flag
Continuous
Who=Germans
State=On
Flag=7 ; Germany no longer receives Italian troops
JUSTONCE
TEXT
GENERAL PATTON CAPTURES SICILY!
^ 
Patton's Seventh Army outflanks the Axis defenses and captures the 
last remaing Axis port on the island.
^ 
The American 9th Air Force deploys to Messina and is now at 
your disposal.
ENDTEXT
@ENDIF

;--- ITALY SURRENDERS

@IF
CheckFlag
Who=Germans
Mask=0xC2 ; Tripoli, Tunis, Messina are all captured
Count=3
State=On
@THEN
JUSTONCE
TEXT
ITALY SURRENDERS TO THE ALLIES!
^ 
The successive Italian military disasters brings Mussolini's downfall. 
^
In a secret meeting General Gariboldi signs the unconditional surrender 
treaty with the Allies.
^
Germany no longer receives Italian reinforcements.
ENDTEXT
@ENDIF

@IF
CheckFlag
Who=Germans
Mask=0xC2 ; Tripoli, Tunis, Messina are NOT all captured
Count=3
State=Off 
@AND
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=Italian
owner=Germans
veteran=no
homecity=Rome
Randomize
locations
91,59
92,50
93,47
endlocations
@ENDIF

@IF
CheckFlag
Who=Germans
Mask=0xC2 ; Tripoli, Tunis, Messina are NOT all captured
Count=3
State=Off 
@AND
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=Light Tank
owner=Germans
veteran=no
homecity=Milan
Randomize
locations
91,59
92,50
93,47
endlocations
@ENDIF

@IF
CheckFlag
Who=Germans
Mask=0xC2 ; Tripoli, Tunis, Messina are NOT all captured
Count=3
State=Off 
@AND
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=Fighter
owner=Germans
veteran=no
homecity=none
Randomize
locations
91,59
92,50
93,47
endlocations
@ENDIF

@IF
CheckFlag
Who=Germans
Mask=0xC2 ; Tripoli, Tunis, Messina are NOT all captured
Count=3
State=Off 
@AND
RANDOMTURN
denominator=6
@THEN
CREATEUNIT
unit=Bomber
owner=Germans
veteran=no
homecity=none
Randomize
locations
91,59
92,50
93,47
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- German regular reinforcements
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=Wehrmacht
owner=Germans
veteran=no
homecity=None
Randomize
locations
95,27
87,31
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=PzKw IV
owner=Germans
veteran=no
homecity=None
Randomize
locations
95,27
87,31
107,25
endlocations
@ENDIF

;---New SS Panzer Division created

@IF
TURN
turn=7
@THEN
JUSTONCE
TEXT
Hitler orders the formation of the 5th 'Wiking' Waffen-SS' division!
ENDTEXT
CREATEUNIT
unit=SS Pz Division
owner=Germans
veteran=yes
homecity=None
locations
95,27
endlocations
@ENDIF

@IF
TURN
turn=19
@THEN
JUSTONCE
TEXT
Hitler orders the formation of the 9th 'Hohenstauffen' Waffen-SS' division!
ENDTEXT
CREATEUNIT
unit=SS Pz Division
owner=Germans
veteran=yes
homecity=None
locations
95,27
endlocations
@ENDIF

@IF
TURN
turn=31
@THEN
JUSTONCE
TEXT
Hitler orders the formation of the 12th 'Hitlerjugend' Waffen-SS' division!
ENDTEXT
CREATEUNIT
unit=SS Pz Division
owner=Germans
veteran=yes
homecity=None
locations
95,27
endlocations
@ENDIF

;---SS Panzer Division recreated

@IF
UNITKILLED
unit=SS Pz Division
attacker=Anybody
defender=Germans
@THEN
TEXT
After being badly mauled in battle, one of Hitler's elite SS formations
returns to action after being retrained and re-equiped.  
ENDTEXT
Delay
delay=3
CREATEUNIT
unit=SS Pz Division
owner=Germans
veteran=yes
homecity=None
locations
95,27
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Russian infantry reinforcements & counter-offensives
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=Red Army
count=2
owner=Russians
veteran=no
homecity=None
Randomize
locations
116,20
139,27
endlocations
@ENDIF


@IF
CheckFlag
Who=Japanese
FLAG=0
State=On
@AND
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=Red Guards
count=3
owner=Russians
veteran=no
homecity=None
Randomize
locations
116,20
139,27
endlocations
@ENDIF

;--- Leningrad or Novgorod captured

@IF
CITYTAKEN
city=Leningrad
attacker=Germans
defender=Russians
@THEN
TEXT
ENDTEXT
Flag
Continuous
Who=Russians
State=On
Flag=5 ; Launch counter-offensive if one of Leningrad or Novgorod captured
@ENDIF

@IF
CITYTAKEN
city=Novgorod
attacker=Germans
defender=Russians
@THEN
TEXT
ENDTEXT
Flag
Continuous
Who=Russians
State=On
Flag=6 ; Launch counter-offensive if one of Leningrad or Novgorod captured
@ENDIF

@IF
CheckFlag
Who=Russians
Mask=0x60 ; One of Leningrad or Novgorod captured
Count=1
State=On 
@THEN
TEXT
SOVIET NORTHERN COUNTER OFFENSIVE!
^
Furious at the string of reversals on the Northern Front, Stalin orders a 
counter attack to liberate the front around the cities of Leningrad/Novgorod.
ENDTEXT
JUSTONCE
Delay
delay=1
CREATEUNIT
unit=Red Guards
count=2
owner=Russians
veteran=no
homecity=none
locations
105,11
106,12
105,9
108,12
endlocations
@ENDIF

@IF
CheckFlag
Who=Russians
Mask=0x60 ; One of Leningrad or Novgorod captured
Count=1
State=On 
@THEN
Delay
delay=1
JUSTONCE
CREATEUNIT
unit=T-34/76
count=2
owner=Russians
veteran=no
homecity=none
locations
105,11
106,12
105,9
108,12
endlocations
@ENDIF

@IF
CheckFlag
Who=Russians
Mask=0x60 ; One of Leningrad or Novgorod captured
Count=1
State=On 
@THEN
Delay
delay=1
JUSTONCE
CREATEUNIT
unit=Field Artillery
count=2
owner=Russians
veteran=no
homecity=none
locations
105,11
106,12
105,9
108,12
endlocations
@ENDIF

@IF
CheckFlag
Who=Russians
Mask=0x60 ; One of Leningrad or Novgorod captured
Count=1
State=On 
@THEN
Delay
delay=1
JUSTONCE
CREATEUNIT
unit=Red Army
count=4
owner=Russians
veteran=no
homecity=none
locations
105,11
106,12
105,9
108,12
endlocations
@ENDIF

;--- Stalingrad captured

@IF
CITYTAKEN
city=Stalingrad
attacker=Germans
defender=Russians
@THEN
TEXT
SOVIET OPERATION URANUS LAUNCHED!
^
Gen. Nikolay Vatutin launches a counterattack north and south of
Stalingrad to repel the Nazi invader.
ENDTEXT
Delay
delay=1
JUSTONCE
CREATEUNIT
unit=Red Guards
count=3
owner=Russians
veteran=yes
homecity=none
locations
115,31
118,32
116,34
116,28
119,35
endlocations
@ENDIF

@IF
CITYTAKEN
city=Stalingrad
attacker=Germans
defender=Russians
@THEN
Delay
delay=1
JUSTONCE
CREATEUNIT
unit=T-34/76
count=3
owner=Russians
veteran=no
homecity=none
locations
115,31
118,32
116,34
116,28
119,35
endlocations
@ENDIF

@IF
CITYTAKEN
city=Stalingrad
attacker=Germans
defender=Russians
@THEN
Delay
delay=1
JUSTONCE
CREATEUNIT
unit=BM-13 Katyusha
count=2
owner=Russians
veteran=yes
homecity=none
locations
115,31
118,32
116,34
116,28
119,35
endlocations
@ENDIF

@IF
CITYTAKEN
city=Stalingrad
attacker=Germans
defender=Russians
@THEN
Delay
delay=1
JUSTONCE
CREATEUNIT
unit=Red Army
count=4
owner=Russians
veteran=yes
homecity=none
locations
115,31
118,32
116,34
116,28
119,35
endlocations
@ENDIF

;--- Moscow, Voronezh or Saratov captured

@IF
CITYTAKEN
city=Moscow
attacker=Germans
defender=Russians
@THEN
JUSTONCE
CREATEUNIT
unit=Red Army
count=4
owner=Russians
veteran=yes
homecity=none
locations
116,20
120,18
endlocations
@ENDIF

@IF
CITYTAKEN
city=Moscow
attacker=Germans
defender=Russians
@THEN
JUSTONCE
CREATEUNIT
unit=Red Guards
count=2
owner=Russians
veteran=yes
homecity=none
locations
116,20
120,18
endlocations
@ENDIF

@IF
CITYTAKEN
city=Voronezh 
attacker=Germans
defender=Russians
@THEN
JUSTONCE
CREATEUNIT
unit=Red Army
count=4
owner=Russians
veteran=yes
homecity=none
locations
116,28
116,20
endlocations
@ENDIF

@IF
CITYTAKEN
city=Saratov  
attacker=Germans
defender=Russians
@THEN
JUSTONCE
CREATEUNIT
unit=Red Army
count=4
owner=Russians
veteran=yes
homecity=none
locations
116,32
117,27
116,20
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Divine Wind and Japanese Inner defensive perimeter breached
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
TURN
turn=26
@THEN
Flag
Continuous
Who=Japanese
State=On
Flag=0 ; Activate Kamikazes if breach Japanese defense and year is 1944 or greater
@ENDIF

@IF
CITYTAKEN
city=Singapore  
attacker=British
defender=Japanese
@THEN
Flag
Continuous
Who=Japanese
State=On
Flag=1 ; Activate Kamikazes 
@ENDIF

@IF
CITYTAKEN
city=Batavia  
attacker=British
defender=Japanese
@THEN
Flag
Continuous
Who=Japanese
State=On
Flag=2 ; Activate Kamikazes 
@ENDIF

@IF
CITYTAKEN
city=Tarakan  
attacker=British
defender=Japanese
@THEN
Flag
Continuous
Who=Japanese
State=On
Flag=3 ; Activate Kamikazes 
@ENDIF

@IF
CITYTAKEN
city=Manila  
attacker=British
defender=Japanese
@THEN
Flag
Continuous
Who=Japanese
State=On
Flag=4 ; Activate Kamikazes 
@ENDIF

@IF
CheckFlag
Who=Japanese
Mask=0x1F ;
Count=2
State=On
@THEN
JUSTONCE
TEXT
JAPAN'S HIGH COMMAND APPROVES DESPERATE NEW WEAPON!
^
It's inner defenses having been breached, Japan forms, in desperation, squadrons of 
suicide pilots, whose sole purpose will be to crash their bomb-ladened planes on 
allied ships. 
^
These pilots will soon be known as "Kamikaze" or "the Wind from Heaven".
ENDTEXT
GiveTechnology		
receiver=Japanese
technology=20
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=20
receiver=Japanese
@AND
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=Ohka Kamikaze
Count=2
owner=Japanese
veteran=yes
homecity=None
Randomize
locations
142,72
156,62
157,57
146,74
155,47
endlocations
@ENDIF

@IF
CheckFlag
Who=Japanese
Mask=0x1F
Count=3
State=On	 
@AND
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=Imperial Army
Count=2
owner=Japanese
veteran=yes
homecity=None
Randomize
locations
163,45
158,50
162,48
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;---British Commonwealth reinforcements
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

;--- India

@IF
RANDOMTURN
denominator=5
@THEN
CREATEUNIT
unit=Indian Infantry
owner=British
veteran=no
homecity=None
Randomize
locations
128,58
127,71
135,63
endlocations
@ENDIF

;--- Canada

@IF
RANDOMTURN
denominator=5
@THEN
CREATEUNIT
unit=CDN Infantry
owner=British
veteran=no
homecity=None
Randomize
locations
47,31
52,28
endlocations
@ENDIF

;--- Australia

@IF
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=ANZAC Infantry
owner=British
veteran=no
homecity=None
Randomize
locations
161,107
157,109
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- American main operations in support of British Empire
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

;--- US Aid - Receive free Lend Lease Trucks in Toronto

@IF
RECEIVEDTECHNOLOGY
technology=22
receiver=British
@AND
RANDOMTURN
denominator=4
@THEN
TEXT
American Lend Lease Aid arrives in Canada!
ENDTEXT
CREATEUNIT
unit=Lend-Lease Truck
owner=British
veteran=no
homecity=None
Randomize
locations
47,31
endlocations
@ENDIF

;--- Guadalcanal - Operation Watchtower

@IF
TURN
turn=9 ; Activate Operation Watchtower
@THEN
JUSTONCE
TEXT
U.S. OPERATION WATCHTOWER LAUNCHED!
^
Gen. Vandergrift's forces arrive in the South Pacific and are at your disposal to 
drive the Japanese defenders from Guadalcanal.
^
If you capture Henderson AFB the Americans will deploy the 5th Air Force to the city.
ENDTEXT
CREATEUNIT
unit=U.S.M.C.
owner=British
veteran=yes
homecity=None
locations
159,97
176,110
endlocations
@ENDIF

@IF
TURN
turn=9 ; Activate Operation Watchtower
@THEN
JUSTONCE
CREATEUNIT
unit=G.I.
Count=2
owner=British
veteran=no
homecity=None
locations
159,97
176,110
endlocations
@ENDIF

@IF
TURN
turn=9 ; Activate Operation Watchtower
@THEN
JUSTONCE
CREATEUNIT
unit=A.A.Battery
owner=British
veteran=no
homecity=None
locations
159,97
176,110
endlocations
@ENDIF

@IF
TURN
turn=9 ; Activate Operation Watchtower
@THEN
JUSTONCE
CREATEUNIT
unit=Field Artillery
owner=British
veteran=no
homecity=None
locations
159,97
176,110
endlocations
@ENDIF

@IF
TURN
turn=9 ; Activate Operation Watchtower
@THEN
JUSTONCE
CREATEUNIT
unit=Freighter
owner=British
veteran=no
homecity=None
locations
159,97
176,110
endlocations
@ENDIF

@IF
TURN
turn=9 ; Activate Operation Watchtower
@THEN
JUSTONCE
CREATEUNIT
unit=Battleship
owner=British
veteran=yes
homecity=None
locations
159,97
176,110
endlocations
@ENDIF

@IF
TURN
turn=9 ; Activate Operation Watchtower
@THEN
JUSTONCE
CREATEUNIT
unit=Cruiser
owner=British
veteran=no
homecity=None
locations
159,97
176,110
endlocations
@ENDIF

@IF
TURN
turn=9 ; Activate Operation Watchtower
@THEN
JUSTONCE
CREATEUNIT
unit=Destroyer
owner=British
veteran=no
homecity=None
locations
159,97
176,110
endlocations
@ENDIF

;--- Henderson AFB 

@IF
CITYTAKEN
city=Henderson AFB
attacker=Anybody
defender=Japanese
@THEN
Flag
Continuous
Who=British
State=On
Flag=0 ; Used to activate Operation Cartwheel
JUSTONCE
TEXT
JAPS DRIVEN FROM GUADALCANAL!
^ 
The U.S. airforce establishes its first major base in the Solomon islands.
ENDTEXT
JUSTONCE
CREATEUNIT
unit=B-17 Fortress
owner=British
veteran=yes
homecity=None
locations
170,94
endlocations
@ENDIF

@IF
CITYTAKEN
city=Henderson AFB
attacker=Anybody
defender=Japanese
@THEN
JUSTONCE
CREATEUNIT
unit=P-38 Lightning
owner=British
veteran=yes
homecity=None
locations
170,94
endlocations
@ENDIF

;--- Pacific Southwest battle - Operation Cartwheel

@IF
CheckFlag
Who=British
Mask=0x1 ; Activates Operation Cartwheel
Count=1
State=On
@THEN
Delay
delay=6
JUSTONCE
TEXT
OPERATION CARTWHEEL!
^ 
The successfull conclusion to the battle of Guadalcanal leads Nimitz's 
Pacific Command to implement the next phase of the SouthWest Pacific 
campaign - Operation Cartwheel.
^
A combination of naval, air and ground forces are now at your disposal
in the cities of Henderson AFB or Auckland.
ENDTEXT
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1 ; Activates Operation Cartwheel
Count=1
State=On
@THEN
Delay
delay=6
JUSTONCE
CREATEUNIT
unit=Battleship
owner=British
veteran=no
homecity=None
locations
170,94
176,110
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1 ; Activates Operation Cartwheel
Count=1
State=On
@THEN
Delay
delay=6
JUSTONCE
CREATEUNIT
unit=Destroyer
owner=British
veteran=no
homecity=None
locations
170,94
176,110
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1 ; Activates Operation Cartwheel
Count=1
State=On
@THEN
Delay
delay=6
JUSTONCE
CREATEUNIT
unit=P-51 Mustang
owner=British
veteran=no
homecity=None
locations
170,94
176,110
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1 ; Activates Operation Cartwheel
Count=1
State=On
@THEN
Delay
delay=6
JUSTONCE
CREATEUNIT
unit=P-38 Lightning
owner=British
veteran=no
homecity=None
locations
170,94
176,110
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1 ; Activates Operation Cartwheel
Count=1
State=On
@THEN
Delay
delay=6
JUSTONCE
CREATEUNIT
unit=P-47 Thunderbolt
owner=British
veteran=yes
homecity=None
locations
170,94
176,110
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1 ; Activates Operation Cartwheel
Count=1
State=On
@THEN
Delay
delay=6
JUSTONCE
CREATEUNIT
unit=U.S.M.C.
owner=British
veteran=yes
homecity=None
locations
170,94
176,110
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1 ; Activates Operation Cartwheel
Count=1
State=On
@THEN
Delay
delay=6
JUSTONCE
CREATEUNIT
unit=G.I.
count=2
owner=British
veteran=yes
homecity=None
locations
170,94
176,110
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1 ; Activates Operation Cartwheel
Count=1
State=On
@THEN
Delay
delay=6
JUSTONCE
CREATEUNIT
unit=A.A.Battery
owner=British
veteran=yes
homecity=None
locations
170,94
176,110
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1 ; Activates Operation Cartwheel
Count=1
State=On
@THEN
Delay
delay=6
JUSTONCE
CREATEUNIT
unit=M12 GMC
count=2
owner=British
veteran=yes
homecity=None
locations
170,94
176,110
endlocations
@ENDIF

;--- North African landings - Operation Torch 

@IF
CITYTAKEN
city=Benghazi
attacker=British
defender=Germans
@THEN
Flag
Continuous
Who=British
State=On
Flag=1 ; Used to activate Sicily/Salerno operations
JUSTONCE
TEXT
IMPORTANT SHAEF COMMUNIQUE: GEN. EISENHOWER'S 1ST ARMY TO INVADE NORTH AFRICA!
^
To support Gen. Montgomery's Libyan campaign, the American First Army is set to invade North Africa. 
^
The American troops (6 units) will be available to you in the British port of Gibraltar in two turns.
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Benghazi
attacker=British
defender=Germans
@THEN
ModifyReputation
Who=Neutrals
whom=British
modifier=100
@ENDIF

@IF
CITYTAKEN
city=Benghazi
attacker=British
defender=Germans
@THEN
Delay
Delay=2
JUSTONCE
TEXT
U.S. II CORPS SET TO INVADE MOROCCO AND ALGERIA!
^
Gen. Eisenhower is mandated to join up with the British Eight Army coming from the 
east and capture Tunis.
^
If you capture Algiers the U.S. 12th Air Force will be deployed to the city 
and placed at your disposal.
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Benghazi
attacker=British
defender=Germans
@THEN
JUSTONCE
Delay
Delay=2
CREATEUNIT
unit=G.I.
count=3
owner=British
veteran=yes
homecity=None
locations
82,50
endlocations
@ENDIF

@IF
CITYTAKEN
city=Benghazi
attacker=British
defender=Germans
@THEN
JUSTONCE
Delay
Delay=2
CREATEUNIT
unit=Paratroopers
owner=British
veteran=yes
homecity=None
locations
82,50
endlocations
@ENDIF

@IF
CITYTAKEN
city=Benghazi
attacker=British
defender=Germans
@THEN
JUSTONCE
Delay
Delay=2
CREATEUNIT
unit=Light Tank
count=2
owner=British
veteran=no
homecity=None
locations
82,50
endlocations
@ENDIF

;--- If 'Americans' capture Algiers

@IF
CITYTAKEN
city=Algiers
attacker=British
defender=Neutrals
@THEN
delay
delay=1
JUSTONCE
TEXT
American 12th Air Force deploys to Algiers!
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Algiers
attacker=British
defender=Neutrals
@THEN
delay
delay=1
JUSTONCE
CREATEUNIT
unit=B-17 Fortress
owner=British
veteran=no
homecity=None
locations
85,53
endlocations
@ENDIF

@IF
CITYTAKEN
city=Algiers
attacker=British
defender=Neutrals
@THEN
delay
delay=1
JUSTONCE
CREATEUNIT
unit=P-38 Lightning
owner=British
veteran=no
homecity=None
locations
85,53
endlocations
@ENDIF

@IF
CITYTAKEN
city=Algiers
attacker=British
defender=Neutrals
@THEN
delay
delay=1
JUSTONCE
CREATEUNIT
unit=Engineers
owner=British
veteran=no
homecity=None
locations
85,53
endlocations
@ENDIF

;--- Italian landings - Sicily and Salerno combined operation

@IF
CITYTAKEN
city=Tunis
attacker=British
defender=Germans
@THEN
Flag
Continuous
Who=British
State=On
Flag=2 ; Activate Sicily/Italian landings and activate French partisans
JUSTONCE
CREATEUNIT
unit=French Infantry
count=2
owner=British
veteran=yes
homecity=None
locations
89,53
82,50
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x6 ; Tripoli and Tunis are captured
Count=2
State=On
@THEN
JUSTONCE
TEXT
IMPORTANT SHAEF COMMUNIQUE: GEN. EISENHOWER TO INVADE SICILY!
^
Having expelled Erwin Rommel's Axis forces from Africa, Patton's Seventh army
is set to invade Italy in 2 turns time.
^
The American troops (8 units) will be at your disposal and deployed in the port of Tunis 
in two turns.
ENDTEXT
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x6 ; U.S. Sicily landings
Count=2
State=On
@THEN
Delay
Delay=2
JUSTONCE
TEXT
GEN. PATTON'S SEVENTH ARMY READY TO INVADE ITALY!
^
If you capture Messina the Americans will transfer their 9th Air Force 
to the city.
ENDTEXT
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x6 ; U.S. Sicily landings
Count=2
State=On
@THEN
JUSTONCE
Delay
Delay=2
CREATEUNIT
unit=G.I.
count=3
owner=British
veteran=no
homecity=None
locations
89,53
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x6 ; U.S. Sicily landings
Count=2
State=On
@THEN
JUSTONCE
Delay
Delay=2
CREATEUNIT
unit=M4A1 Sherman
count=2
owner=British
veteran=no
homecity=None
locations
89,53
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x6 ; U.S. Sicily landings
Count=2
State=On
@THEN
JUSTONCE
Delay
Delay=2
CREATEUNIT
unit=Mech. Infantry
count=2
owner=British
veteran=no
homecity=None
locations
89,53
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x6 ; U.S. Sicily landings
Count=2
State=On
@THEN
JUSTONCE
Delay
Delay=2
CREATEUNIT
unit=M12 GMC
count=2
owner=British
veteran=Yes
homecity=None
locations
89,53
endlocations
@ENDIF

;--- If Allies capture Messina

@IF
CITYTAKEN
city=Messina
attacker=Anybody
defender=Germans
@THEN
Flag
Continuous
Who=British
State=On
Flag=3 ; Used to activate Normandy Landings
@ENDIF

@IF
CITYTAKEN
city=Messina
attacker=Anybody
defender=Germans
@THEN
JUSTONCE
CREATEUNIT
unit=B-17 Fortress
owner=British
veteran=no
homecity=None
locations
92,50
endlocations
@ENDIF

@IF
CITYTAKEN
city=Messina
attacker=Anybody
defender=Germans
@THEN
JUSTONCE
CREATEUNIT
unit=P-38 Lightning
owner=British
veteran=no
homecity=None
locations
92,50
endlocations
@ENDIF

;--- Naples taken

@IF
CITYTAKEN
city=Naples
attacker=Anybody
defender=Germans
@THEN
Flag
Continuous
Who=British
State=On
Flag=4 ; Used to activate Normandy Landings
@ENDIF

;--- Normandy landings - Operation Overlord 

@IF
CheckFlag
Who=British
Mask=0x1E ; Tripoli, Tunis, Messina and Naples are captured
Count=4
State=On
@THEN
JUSTONCE
TEXT
IMPORTANT SHAEF COMMUNIQUE: 12TH ARMY GROUP TO INVADE FRANCE!
^
Gen. Eisenhower's staff at SHAEF are making the final preparations for the invasion of France.
^
The American troops (13 units) will be available to you in the British ports of Plymouth 
or Liverpool in six turns.
^
Make certain that you control the port and that you will have sufficient freighters to 
transport them.
ENDTEXT
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1E ; U.S. Normandy landings
Count=4
State=On
@THEN
TEXT
U.S. 1ST ARMY READY TO STRIKE!
^
Gen. Hodges troops along with the U.S. 8th Air Force are now at your disposal 
in the ports of Plymouth or Liverpool.
^
The primary objective is to capture Paris if you wish to get the follow 
up American reinforcements.
ENDTEXT
JUSTONCE
Delay
Delay=6
CREATEUNIT
unit=G.I.
count=4
owner=British
veteran=no
homecity=None
locations
81,29
82,24
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1E ; U.S. Normandy landings
Count=4
State=On
@THEN
JUSTONCE
Delay
Delay=6
CREATEUNIT
unit=Paratroopers
owner=British
veteran=no
homecity=None
locations
81,29
82,24
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1E ; U.S. Normandy landings
Count=4
State=On
@THEN
JUSTONCE
Delay
Delay=6
CREATEUNIT
unit=M4A1 Sherman
count=4
owner=British
veteran=no
homecity=None
locations
81,29
82,24
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1E ; U.S. Normandy landings
Count=4
State=On
@THEN
JUSTONCE
Delay
Delay=6
CREATEUNIT
unit=Mech. Infantry
count=3
owner=British
veteran=no
homecity=None
locations
81,29
82,24
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1E ; U.S. Normandy landings
Count=4
State=On
@THEN
JUSTONCE
Delay
Delay=6
CREATEUNIT
unit=M12 GMC
owner=British
veteran=no
homecity=None
locations
81,29
82,24
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1E ; U.S. Normandy landings
Count=4
State=On
@THEN
JUSTONCE
Delay
Delay=6
CREATEUNIT
unit=B-17 Fortress
owner=British
veteran=no
homecity=None
locations
81,29
82,24
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1E ; U.S. Normandy landings
Count=4
State=On
@THEN
JUSTONCE
Delay
Delay=6
CREATEUNIT
unit=P-47 Thunderbolt 
owner=British
veteran=no
homecity=None
locations
81,29
82,24
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1E ; U.S. Normandy landings
Count=4
State=On
@THEN
JUSTONCE
Delay
Delay=6
CREATEUNIT
unit=P-51 Mustang 
owner=British
veteran=no
homecity=None
locations
81,29
82,24
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1E ; U.S. Normandy landings
Count=4
State=On
@THEN
JUSTONCE
Delay
Delay=6
CREATEUNIT
unit=P-38 Lightning 
owner=British
veteran=no
homecity=None
locations
81,29
82,24
endlocations
@ENDIF

;--- US Overlord reinforcements

@IF
CheckFlag
Who=British
Mask=0x3E ; U.S. Overlord reinforcements
Count=5
State=On
@THEN
TEXT
U.S. 3rd ARMY READY TO BE DEPLOYED TO FRANCE!
^
The American troops (9 units) will be available to you in the British port 
of Plymouth in two turns.
^ 
Make certain you will have sufficient freighters to transport them.
ENDTEXT
JUSTONCE
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x3E ; U.S. Overlord reinforcements
Count=5
State=On
@THEN
JUSTONCE
Delay
Delay=2
CREATEUNIT
unit=G.I.
count=3
owner=British
veteran=no
homecity=None
locations
81,29
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x3E ; U.S. Overlord reinforcements
Count=5
State=On
@THEN
JUSTONCE
Delay
Delay=2
CREATEUNIT
unit=M4A3 Sherman
count=2
owner=British
veteran=no
homecity=None
locations
81,29
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x3E ; U.S. Overlord reinforcements
Count=5
State=On
@THEN
JUSTONCE
Delay
Delay=2
CREATEUNIT
unit=Mech. Infantry
count=2
owner=British
veteran=no
homecity=None
locations
81,29
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x3E ; U.S. Overlord reinforcements
Count=5
State=On
@THEN
JUSTONCE
Delay
Delay=2
CREATEUNIT
unit=M12 GMC
owner=British
veteran=no
homecity=None
locations
81,29
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x3E ; U.S. Overlord reinforcements
Count=5
State=On
@THEN
JUSTONCE
Delay
Delay=2
CREATEUNIT
unit=B-17 Fortress
owner=British
veteran=no
homecity=None
locations
81,29
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x3E ; U.S. Overlord reinforcements
Count=5
State=On
@THEN
JUSTONCE
Delay
Delay=2
CREATEUNIT
unit=P-47 Thunderbolt 
owner=British
veteran=no
homecity=None
locations
81,29
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x3E ; U.S. Overlord reinforcements
Count=5
State=On
@THEN
JUSTONCE
Delay
Delay=2
CREATEUNIT
unit=P-51 Mustang 
owner=British
veteran=no
homecity=None
locations
81,29
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x3E ; U.S. Overlord reinforcements
Count=5
State=On
@THEN
JUSTONCE
Delay
Delay=2
CREATEUNIT
unit=P-38 Lightning 
owner=British
veteran=no
homecity=None
locations
81,29
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Allied liberation of North Africa
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CITYTAKEN
city=Casablanca
attacker=Anybody
defender=Neutrals
@THEN
TEXT
MOROCCAN VICHY COLONY FALLS TO ALLIED TROOPS!
^
Many frenchmen rally to the Allied cause.
ENDTEXT
JUSTONCE
CREATEUNIT
unit=French Infantry
owner=British
veteran=yes
homecity=None
locations
80,56
82,50
endlocations
@ENDIF

@IF
CITYTAKEN
city=Algiers
attacker=Anybody
defender=Neutrals
@THEN
TEXT
ALGERIAN VICHY COLONY FALLS TO ALLIED TROOPS!
^
Many frenchmen rally to the Allied cause.
ENDTEXT
JUSTONCE
CREATEUNIT
unit=French Infantry
count=2
owner=British
veteran=yes
homecity=None
locations
85,53
82,50
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;---Liberation of France
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CITYTAKEN
city=Paris
attacker=Anybody
defender=Germans
@THEN
TEXT
PARIS LIBERATED!
^
General Leclerc's 2nd Armoured Division rushes to liberate Paris. Triumphant 
Allied forces parade up the Champs-Elyses. 
^
Frenchmen flock to join General DeGaulle's forces.
ENDTEXT
JUSTONCE
Flag
Continuous
Who=British
State=On
Flag=5 ; Used to activate US follow up reinforcements
CREATEUNIT
unit=French Infantry
Count=4
owner=British
veteran=yes
homecity=None
locations
87,31
85,25
endlocations
@ENDIF

@IF
CITYTAKEN
city=Marseille
attacker=Anybody
defender=Germans
@THEN
TEXT
MARSEILLES LIBERATED!
^
Elements of General de Lattre's 1st French Army liberate Marseilles. 
^
Frenchmen flock to join General DeGaulle's forces.
ENDTEXT
JUSTONCE
CREATEUNIT
unit=French Infantry
Count=2
owner=British
veteran=yes
homecity=None
locations
88,42
85,25
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- British flags: 
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::

;--- Capture of Paris, Rome, Munich, Balokpapan opens path to American atom bomb development

@IF
CITYTAKEN
city=Rome
attacker=British
defender=Germans
@THEN
Flag
Continuous
Who=British
State=On
Flag=6 ; The capture of the 3 of 4 Axis objective cities leads to atom bomb development
JUSTONCE
TEXT
GENERAL ALEXANDER'S TROOPS LIBERATE THE ETERNAL CITY!
^
The Italian capital falls to the Allies to the cheers of jubilant crowds...
^
Many Italians join partisan groups in the north. 
ENDTEXT
JUSTONCE
CREATEUNIT
unit=Partisans
Count=2
owner=British
veteran=yes
homecity=None
locations
94,38
94,40
endlocations
@ENDIF

@IF
CITYTAKEN
city=Munich
attacker=British
defender=Germans
@THEN
Flag
Continuous
Who=British
State=On
Flag=7 ; 
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Balikpapan
attacker=British
defender=Japanese
@THEN
Flag
Continuous
Who=British
State=On
Flag=8 ; 
JUSTONCE
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1E0
Count=3
State=On
@THEN
GIVETECHNOLOGY
technology=96
receiver=Americans
JUSTONCE
TEXT
AXIS DEFENSIVE PERIMETER BREACHED!
^
The American High Command can now establish the necessary forward bases critical for 
launching potential atomic attacks against the Axis homelands.
ENDTEXT
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Capture of Naples or Rome activates German 10th Army
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CheckFlag
Who=British
Mask=0x50   ; Activate 10th Army
Count=1
State=On
@THEN
JUSTONCE
CREATEUNIT
unit=Pzkw VD
count=2
owner=Germans
veteran=yes
homecity=None
Randomize
locations
91,39
95,35
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x50   ; Activate 10th Army
Count=1
State=On
@THEN
JUSTONCE
CREATEUNIT
unit=Pzkw VIA
owner=Germans
veteran=yes
homecity=None
Randomize
locations
91,39
95,35
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x50   ; Activate 10th Army
Count=1
State=On
@THEN
JUSTONCE
CREATEUNIT
unit=Pz Grenadiers
count=2
owner=Germans
veteran=yes
homecity=None
Randomize
locations
91,39
95,35
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x50   ; Activate 10th Army
Count=1
State=On
@THEN
JUSTONCE
CREATEUNIT
unit=Wehrmacht
count=3
owner=Germans
veteran=no
homecity=None
Randomize
locations
91,39
95,35
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x50   ; Activate 10th Army
Count=1
State=On
@THEN
JUSTONCE
CREATEUNIT
unit=A.A.Battery
count=2
owner=Germans
veteran=no
homecity=None
Randomize
locations
91,39
95,35
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Capture of Paris, Antwerp, Hamburg, Lyons, Cologne, Munich & Wacht am Rhein
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CITYTAKEN
city=Antwerp
attacker=Anybody
defender=Germans
@THEN
Flag
Continuous
Who=British
State=On
Flag=9 ; Capture 2 of 6 Axis cities
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Hamburg
attacker=Anybody
defender=Germans
@THEN
Flag
Continuous
Who=British
State=On
Flag=10 ; Capture 2 of 6 Axis cities
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Lyons
attacker=Anybody
defender=Germans
@THEN
Flag
Continuous
Who=British
State=On
Flag=11 ; Capture 2 of 6 Axis cities
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Cologne
attacker=Anybody
defender=Germans
@THEN
Flag
Continuous
Who=British
State=On
Flag=12 ; Capture 2 of 6 Axis cities
JUSTONCE
@ENDIF

;--- Operation Wacht am Rhein 

@IF
CheckFlag
Who=British
Mask=0x1EA0   ; Operation Wacht am Rhein
Count=2
State=On
@THEN
JUSTONCE
TEXT
NEWS FLASH: GERMANY LAUNCHES COUNTER-ATTACK!
^
The Germans have mounted a series of counter-attacks on the Western front 
allowing them to re-cross the borders of France. 
ENDTEXT
CREATEUNIT
unit=SS Pz Division
count=2
owner=Germans
veteran=yes
homecity=none
locations
91,27
93,33
92,30
95,27
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1EA0   ; Operation Wacht am Rhein
Count=2
State=On
@THEN
JUSTONCE
CREATEUNIT
unit=Pzkw VIA
count=3
owner=Germans
veteran=no
homecity=none
locations
91,27
93,33
92,30
95,27
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1EA0   ; Operation Wacht am Rhein
Count=2
State=On
@THEN
JUSTONCE
CREATEUNIT
unit=Pzkw VD
count=3
owner=Germans
veteran=no
homecity=none
locations
91,27
93,33
92,30
95,27
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1EA0   ; Operation Wacht am Rhein
Count=2
State=On
@THEN
JUSTONCE
CREATEUNIT
unit=Pz Grenadiers
count=2
owner=Germans
veteran=no
homecity=none
locations
91,27
93,33
92,30
95,27
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1EA0   ; Operation Wacht am Rhein
Count=2
State=On
@THEN
JUSTONCE
CREATEUNIT
unit=Field Artillery
count=2
owner=Germans
veteran=no
homecity=none
locations
91,27
93,33
92,30
95,27
endlocations
@ENDIF

@IF
CheckFlag
Who=British
Mask=0x1EA0   ; Operation Wacht am Rhein
Count=2
State=On
@THEN
JUSTONCE
CREATEUNIT
unit=Wehrmacht
count=6
owner=Germans
veteran=no
homecity=none
locations
91,27
93,33
92,30
95,27
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Fall of Berlin
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CITYTAKEN
city=Berlin
attacker=Anybody
defender=Germans
@THEN
JUSTONCE
TEXT
THE NAZI CAPITAL FALLS!
^
Berlin falls to the Allies. Hitler, Eva Braun, Goebbels and other top Nazi leaders commit 
suicide in the bunker under the "Reichskanzlei". 
^
Control of the German Reich is passed to Admiral Dnitz who wows to continue the fight 
to free the German "Vaterland".
ENDTEXT
PlayWaveFile
Hitlerdead.wav
HASTRIGGERED
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- German atomic program
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
CITYTAKEN
city=Gorky
attacker=Germans
defender=Russians
@THEN
Flag
Continuous
Who=Germans
State=On
Flag=5 ; The capture of Gorky opens path to 'Atomic bomb' technology
JUSTONCE
@ENDIF

@IF
CheckFlag
Who=Germans
Flag=5	; German path to atom bomb is now open
State=On 
@THEN
TEXT
GERMAN SCIENTIST DISCOVER SECRET U.S. ATOM BOMB DOCUMENTS IN GORKY!
^
Germany is one step closer in its own atomic development program.
ENDTEXT
GIVETECHNOLOGY
technology=96
receiver=Germans
JUSTONCE
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;---Atomic bomb technology successfully tested message
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
RECEIVEDTECHNOLOGY
technology=40
receiver=Americans
@THEN
TEXT
Scientist at Alamogordo successfully test Atom Bomb!
ENDTEXT
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=40
receiver=Germans
@THEN
TEXT
Nazi scientist develop new fearful weapon: Atom Bomb!
ENDTEXT
JUSTONCE
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Vergeltungswaffe retaliation weapon
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
RECEIVEDTECHNOLOGY
technology=73
receiver=Germans
@AND
RANDOMTURN
denominator=1
@THEN
CREATEUNIT
unit=V-1 Bomb
owner=Germans
veteran=yes
homecity=None
locations
87,31
88,28
91,23
91,27
93,33
endlocations
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Russian declaration of war against Japan
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
TURN
turn=43
@THEN
Flag
Continuous
Who=Russians
State=On
Flag=1 ; Activate Russian DOW against Japan when 2 of 3 conditions are met
@ENDIF

@IF
CITYTAKEN
city=Berlin
attacker=Anybody
defender=Germans
@THEN
Flag
Continuous
Who=Russians
State=On
Flag=2 ; 
@ENDIF

@IF
CITYTAKEN
city=Rome
attacker=Anybody
defender=Germans
@THEN
Flag
Continuous
Who=Russians
State=On
Flag=3 ; 
@ENDIF

@IF
CheckFlag
Who=Russians
Mask=0xE  ;
Count=2
State=On
@THEN
JUSTONCE
TEXT
RUSSIAN TROOPS INVADE MANDCHURIA!
^
Stalin lives up to his Yalta commitments and declares war on Japan. 
^
Soviets forces under Marshall Zhukov launch an invasion of Mandchuria.
ENDTEXT
ModifyReputation
Who=Japanese
whom=Russians
modifier=100
@ENDIF

@IF
CheckFlag
Who=Russians
Mask=0xE  ;
Count=2
State=On
@AND
RANDOMTURN
denominator=1
@THEN
MakeAggression		
who=Russians
whom=Japanese
@ENDIF

@IF
CheckFlag
Who=Russians
Mask=0xE  ;
Count=2
State=On
@THEN
JUSTONCE
CREATEUNIT
unit=T-34/85
Count=4
owner=Russians
veteran=yes
homecity=None
locations
154,36
153,35
155,37
endlocations
@ENDIF

@IF
CheckFlag
Who=Russians
Mask=0xE  ;
Count=2
State=On
@THEN
JUSTONCE
CREATEUNIT
unit=Red Guards
Count=6
owner=Russians
veteran=yes
homecity=None
locations
154,36
153,35
155,37
endlocations
@ENDIF

@IF
CheckFlag
Who=Russians
Mask=0xE  ;
Count=2
State=On
@THEN
JUSTONCE
CREATEUNIT
unit=BM-13 Katyusha
Count=4
owner=Russians
veteran=yes
homecity=None
locations
154,36
153,35
155,37
endlocations
@ENDIF

@IF
CheckFlag
Who=Russians
Mask=0xE  ;
Count=2
State=On
@THEN
JUSTONCE
CREATEUNIT
unit=Yak-9
Count=3
owner=Russians
veteran=yes
homecity=None
locations
155,39
155,33
145,35
endlocations
@ENDIF

@IF
CheckFlag
Who=Russians
Mask=0xE  ;
Count=2
State=On
@THEN
JUSTONCE
CREATEUNIT
unit=IL-2 Shturmovik
Count=3
owner=Russians
veteran=yes
homecity=None
locations
155,39
155,33
145,35
endlocations
@ENDIF

@IF
CheckFlag
Who=Russians
Mask=0xE  ;
Count=2
State=On
@THEN
JUSTONCE
MOVEUNIT
unit=AnyUnit
owner=Russians
maprect
151,33,157,33,157,39,151,39
moveto
140,64
numbertomove=ALL
@ENDIF

;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;--- Negotiations
;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@IF
NEGOTIATION
talker=Anybody
talkertype=HumanOrComputer
listener=Anybody
listenertype=HumanOrComputer
@THEN
@ENDIF

@IF
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=Russians
whom=Germans
@ENDIF

@IF
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=Japanese
whom=Americans
@ENDIF

@IF
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=Japanese
whom=British
@ENDIF

@IF
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=Japanese
whom=Chinese
@ENDIF

@IF
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=Germans
whom=British
@ENDIF

@IF
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=Germans
whom=Americans
@ENDIF

@IF
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=Germans
whom=Russians
@ENDIF

@IF
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=British
whom=Germans
@ENDIF

@IF
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=British
whom=Japanese
@ENDIF

@IF
RANDOMTURN
denominator=1
@THEN
MAKEAGGRESSION
who=Chinese
whom=Japanese
@ENDIF

@ENDEVENTS
